<?php

class Template_Theme_Default_HTML_Form_Field extends Template {

	public $name = array();

	public function name(){
		$first = true;
		$string = "";
		foreach($this->name as $name){
			if($first){
				$string .= $name;
				$first = false;
			} else {
				$string .= "[{$name}]";
			}
		}
		return $string;
	}


	public function display(){

?>
	<div class="form_field">
<?php
	if(isset($this->main)){ $this->main->display(); }
?>
	</div>
<?php
	}


}
